package com.example.demo.serviceimpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.demo.entity.BookCore;
import com.example.demo.mapper.BookCoreMapper;
import com.example.demo.service.BookCoreService;

/**
 * 书籍的实现类
 * 
 * @author wang
 *
 */
@Service
public class BookCoreServiceImpl implements BookCoreService {

	@Autowired
	private BookCoreMapper bookCoreMapper;

	/**
	 * 查找相关书籍
	 */
	@Override
	public BookCore BookNameandEnglishName(Integer id) {

		return bookCoreMapper.BookNameandEnglishName(id);
	}

	/**
	 * 访问一次页面增加一次页面数量
	 */
	@Override
	public int increaseTheNum(Integer id) {
		// TODO Auto-generated method stub
		return bookCoreMapper.increaseTheNum(id);
	}

	/**
	 * 根据id修改论的总次数
	 */
	//
	// @Override
	// public int updateNumberCounts(BookCore bookCore) {
	// // TODO Auto-generated method stub
	// return bookCoreMapper.updateNumberCounts(bookCore);
	// }

}
